package com.yan.service;

import java.util.List;

import com.yan.controller.viewModel.sort.SortInfo;
import com.yan.exception.SortException;


public interface SortService {
	public List<SortInfo> findAll() throws InstantiationException, IllegalAccessException;

	public SortInfo findById(Integer id);

	public void add(String sname);

	public List<SortInfo> findBySname(String sname);

	public void modify(Integer id, String sname);
	
	public void remove(Integer id) throws SortException;
}
